* {
    padding: 0;
    margin: 0;
}

ul,
li {
    list-style: none;
}

body {
    background-color: antiquewhite;
    margin: 20px;
    color: #333;
    font-family: 'PingFang SC', 'Microsoft Yahei', sans-serif;
}

nav {
    padding: 10px;
    margin: 20px 0;
    border: 1px solid green;
}

nav a {
    padding: 0 5px;
    color: #1a1a1a;
    margin-left: 0.1%;
}

nav .active {
    color: green;
}

ul {
    padding: 0px 0;
    border: 1px solid green;
}

.todo-cell {
    padding: 5px;
    margin: 2px 5px;
    border: 1px solid green;
    border-radius: 5px;
}

.todo-cell:hover {
    border: 1px solid red;
}

.todo-complete {
    position: relative;
    border-color: #0070c9;
}

.todo-complete::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 10px;
    color: #61dafb;
    transform: translateY(-50%);
}

button {
    margin: 0 4px;
    padding: 0 6px;
    line-height: 25px;
    color: #232323;
    background: #EBF3FF;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
}

button:hover {
    background: #F5F9FF;
    cursor: pointer;
}

input {
    height: 32px;
    padding: 0 12px;
    margin: 0 5px;
    border: 1px solid #eee;
    outline: none;
    border-radius: 3px;
    box-sizing: border-box;
}

input:focus {
    border: 1px solid red;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #175199;
}

p {
    margin-top: 5px;
}

.todo-counter {
    position: absolute; /*位置：绝对*/
    top: 70%;
    left: 35%;
    transform: translateY(-50%)
}

.todo-table {
    display: table;
    margin-bottom: 5px;
}

.todo-row {
    display: table-row;
}

.todo-row:not(:first-child) {
    margin-top: -1px;
}

.cell {
    display: table-cell;
    width: 100px;
    text-align: center;
    border: 1px solid green;
}

form {
    position: absolute; /*位置：绝对*/
    top: 81%;
    left: 30%;
    transform: translateY(-50%)
}

input {
    border: 1px solid green;
}
